package cn.edu.scau.vsac.common;

public class Constants {
    public enum ResponseCode {
        SUCCESS("200", "Success"),
        NOT_FOUND("404", "not-found"),
        UNAUTHORIZED("401", "Unauthorized"),
        NOT_LOGIN("402", "NOT_LOGIN"),
        FORBIDDEN("403", "Forbidden"),
        REQUEST_TIMEOUT("408", "Request-Time-out"),
        INTERNAL_SERVER_ERROR("500", "Internal-Server-Error");
        private String code;
        private String info;

        ResponseCode(String code, String info) {
            this.code = code;
            this.info = info;
        }

        public String getCode() {
            return code;
        }

        public String getInfo() {
            return info;
        }

    }
}
